package com.travel.entity;

import org.springframework.stereotype.Component;
import java.util.Date;
@Component
public class TArticleComments   {
  private int comId;
  private String comContent;
  private int comParentId;
  private Date comTime;
  private TArticle article;
  private TUser user;

  public TUser getUser() {
    return user;
  }

  public void setUser(TUser user) {
    this.user = user;
  }

  public int getComId() {
    return comId;
  }

  public void setComId(int comId) {
    this.comId = comId;
  }

  public String getComContent() {
    return comContent;
  }

  public void setComContent(String comContent) {
    this.comContent = comContent;
  }

  public int getComParentId() {
    return comParentId;
  }

  public void setComParentId(int comParentId) {
    this.comParentId = comParentId;
  }

  public java.util.Date getComTime() {
    return comTime;
  }

  public void setComTime(java.util.Date comTime) {
    this.comTime = comTime;
  }

  public TArticle getArticle() {
    return article;
  }

  public void setArticle(TArticle article) {
    this.article = article;
  }

  public TArticleComments() {
  }

  public TArticleComments(int comId, String comContent, int comParentId, Date comTime, TArticle article, TUser user) {
    this.comId = comId;
    this.comContent = comContent;
    this.comParentId = comParentId;
    this.comTime = comTime;
    this.article = article;
    this.user = user;
  }

  @Override
  public String toString() {
    return "TArticleComments{" +
            "comId=" + comId +
            ", comContent='" + comContent + '\'' +
            ", comParentId=" + comParentId +
            ", comTime=" + comTime +
            ", article=" + article +
            ", user=" + user +
            '}';
  }
}
